#include<bits/stdc++.h>

using namespace std;

//第12周高精度加法
int main() {
    char x[1000], y[1000];
    cin >> x >> y;
    int a[1000] = {0};
    int j = 0;
    for (int i = strlen(x) - 1; i >= 0; i--) {
        a[j++] = x[i] - '0';
    }
    int b[1000] = {0};
    j = 0;
    for (int i = strlen(y) - 1; i >= 0; i--) {
        b[j++] = y[i] - '0';
    }
    int c[1000] = {0};
    int carry = 0;
    for (int i = 0; i < 1000; i++) {
        c[i] = a[i] + b[i] + carry;
        carry = c[i] / 10;
        c[i] %= 10;
    }

    int i = 999;
    while (c[i] == 0)i--;
    for (; i >= 0; i--) {
        cout << c[i];
    }


    return 0;
}
